/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package modele;
import java.util.*;
/**
 *
 * @author sio
 */
public class Dep implements Comparable <Dep>{
    String num;
    Collection <Med> lesMeds = new TreeSet <Med> ();
    public Dep(String num){
       this.num=num;
    
    }
    public void addMed(Med m){
        lesMeds.add(m);
    }
    public String getNum(){return num;}
    public Collection getLesMeds() {
        return lesMeds;
    }
    
    public int compareTo(Dep d)  {
        return num.compareTo((d.num));
    }
    
}
